package com.eb.bean;

import com.eb.config.CodeConstants;

public class ResultBean {
	private String flag="";
	private String desc="";
	private Object data;
	
	public ResultBean(){}
	
	public ResultBean(String flag){
		this.flag = flag;
	}
	
	public ResultBean(String flag,Object o){
		this.flag = flag;
		if(CodeConstants.SUCCESS.equals(flag)){
			this.data = o;
		}else{
			this.desc = o.toString();
		}
	}
	
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
}
